Skip to content

Conversation

@Laren-AWS
Copy link
Contributor

@Laren-AWS Laren-AWS commented Sep 30, 2024

Previously, Go examples all created a new context.TODO() on the fly whenever a context was needed. This is not best practice for context handling. This PR updates all Go examples to create a root context.Background() object inside the main function and pass it down to all of the leaf functions.

Two additional changes are included as well to ensure tests pass:

  • Redshift basics was not deleting the cluster. Now it is.
  • S3 presigner missed a wait for user input call.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the Go-v2 This issue relates to the AWS SDK for Go V2 label Sep 30, 2024
@Laren-AWS Laren-AWS added the Task A general update to the code base for language clarification, missing actions, tests, etc. label Oct 1, 2024
@Laren-AWS Laren-AWS self-assigned this Oct 1, 2024
@Laren-AWS Laren-AWS requested review from a team, DavidSouther and meyertst-aws and removed request for a team and DavidSouther October 1, 2024 19:49
@Laren-AWS Laren-AWS added the On Call Review needed This work needs an on-call review label Oct 1, 2024
@rlhagerm rlhagerm added On Call Review complete On call review complete and removed On Call Review needed This work needs an on-call review labels Oct 2, 2024
More context updates.

More context updates, plus a few fixups to Redshift and S3.

Add missed context in iam tests.
@rlhagerm rlhagerm merged commit 3db0da1 into awsdocs:main Oct 2, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Go-v2 This issue relates to the AWS SDK for Go V2 On Call Review complete On call review complete Task A general update to the code base for language clarification, missing actions, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants